package com.stars.common.base;

/**
 * @author csot.qhluodajie on 2019/2/13.
 */
public class BaseConstant {
    /**
     * 前台传的token
     */
    public static final String ACCESS_TOKEN = "Authorization";
    public static final String USER_ID = "userId";
    public static final String SPOT = ",";
    public static final String ROOT = "root";

    //登录返回页面信息
    public static final String TOKEN_NAME ="token";
    public static final String TOKEN_USER ="user";
    public static final String PERMISSIONS ="permissions";
    public static final String PERMISSIONS_BTN ="perBtnData";
    /**
     * 菜单权限
     */
    public static final String BASE_ROOT = "baseRoot";
    public static final String PER_MENU = "menu";
    public static final String PER_CHILD = "child";
    public static final String PER_BTN = "btn";
    /**
     * 过滤复制
     */
    public static final String [] EXCLUDES ={"id"};
    public static final String [] EXCLUDES_USER ={"id","userName","userPassword","userSalt","userSalt2","userAddTime","userRealName","userPhone","userEnabled","userImage","userEmail","isLock","lockDate"};
    public static final String [] EXCLUDES_BASE ={"id","version","createName","createId","createDate","lastUpdateId","lastUpdateDate","lastUpdateName","isDelete"};
    //新增操作时，不能修改以下数据
    public static final String [] ADD = {"id","version","lastUpdateId","lastUpdateDate","lastUpdateName"};
    public static final String [] ADD_ORG = {"id","version","lastUpdateId","lastUpdateDate","lastUpdateName","orgId","orgName","orgCode","appId","appName"};
    //编辑操作时，不能修改以下数据
    public static final String [] UPDATE = {"id","createName","createId","createDate","isDelete","companyId","companyCode","companyName","orgId","orgName","orgCode","appId","appName"};
    public static final String [] UPDATE_EXCLUDES_COMPANY = {"id","createName","createId","createDate","isDelete"};
    public static final String [] EXCLUDES_UPDATE_ORG = {"id","createName","createId","createDate","isDelete","companyId","companyCode","companyName"};

}
